package Thread_;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Thread05 {
    public static void main(String[] args) {
        Thread thread = new Thread(()->{
           while(true){
               System.out.println("Thread run5");
               try {
                   Thread.sleep(1000);
               } catch (InterruptedException e) {
                   throw new RuntimeException(e);
               }
           }
        },"第五个线程");
        thread.start();
        while(true){
            System.out.println("main");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
